package cn.javass.dp.state.example7;

public class Client {
    public static void main(String[] args) {
        LeaveRequestModel lrm = new LeaveRequestModel();
        lrm.setUser("小明");
        lrm.setBeginDate("2019-03-09");
        lrm.setLeaveDays(5);

        LeaveRequestContext request = new LeaveRequestContext();
        request.setBusinessVO(lrm);
        request.setState(new ProjectManagerState());
        request.doWork();
    }
}
